import Layout from '@/layout'

const wuyeRouter = [
  {
    path: '/news',
    component: Layout,
    redirect: '/',
    // alwaysShow: true,
    name: 'newsContainer',
    meta: { title: '新闻管理', icon: 'dashboard' },
    children: [{
      path: 'index',
      name: 'newsList',
      component: () => import('@/views/news/index'),
      meta: { title: '新闻列表', icon: 'dashboard' }
    }]
  },
  {
    path: '/binner',
    component: Layout,
    redirect: '/',
    name: 'binnerContainer',
    children: [{
      path: 'index',
      name: 'binner',
      component: () => import('@/views/binner/index'),
      meta: { title: '展示图', icon: 'dashboard' }
    }]
  },
  {
    path: '/advice',
    component: Layout,
    redirect: '/',
    name: 'adviceContainer',
    children: [{
      path: 'index',
      name: 'advice',
      component: () => import('@/views/advice/index'),
      meta: { title: '反馈列表', icon: 'dashboard' }
    }]
  }
]

export default wuyeRouter
